package com.itcat.api.mysql;

import com.itcat.mysql.pojo.CmsSubjectProductRelation;

import java.util.List;

/**
 * @author Jerry Broker
 * @project_name rainbow-mall
 * @create 2022-04-04 0:40
 */
public interface CmsSubjectProductRelationApi {

    // 保存专题和商品关系
    void saveList(List<CmsSubjectProductRelation> subjectProductRelationList);

    // 获取专题和商品关系
    List<CmsSubjectProductRelation> findByProductId(Long productId);

    // 更新专题和商品关系
    void updateList(List<CmsSubjectProductRelation> subjectProductRelationList);

    // 删除响应商品id的数据
    void deleteByProductId(Long productId);
}
